import request from "./request";

export const loginAPI = (data) => {
  return request({
    method: "POST",
    url: "/login",
    data,
  });
};

// 上报用户信息
export const report = () => request.post("/report");

// 获取首页信息
export const getHomeInfo = () => request.get("/home");

export const logoutAPI = () => request.get("/logout");
